// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '批次追溯',
        name: 'Batchtraceability',
        url: "/Batchtraceability/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {"BatchNumber":"","ProductMaterialCode":"","ProductMaterialName":"","Unit":"","SupplierCode":"","SupplierName":"","CustomerCode":"","CustomerName":"","SalesOrderNumber":"","PurchaseOrderNumber":""};
    const searchFormOptions = [[{"title":"批次编号","field":"BatchNumber","type":"like"},{"title":"产品物料编号","field":"ProductMaterialCode","type":"like"},{"title":"产品物料名称","field":"ProductMaterialName","type":"like"},{"title":"单位","field":"Unit","type":"like"}],[{"title":"供应商编码","field":"SupplierCode","type":"like"},{"title":"供应商名称","field":"SupplierName","type":"like"},{"title":"客户编码","field":"CustomerCode","type":"like"},{"title":"客户名称","field":"CustomerName","type":"like"}],[{"title":"销售订单编号","field":"SalesOrderNumber","type":"like"},{"title":"采购订单编号","field":"PurchaseOrderNumber","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BatchNumber',title:'批次编号',type:'string',width:110,align:'left'},
                       {field:'ProductMaterialCode',title:'产品物料编号',type:'string',width:110,align:'left'},
                       {field:'ProductMaterialName',title:'产品物料名称',type:'string',width:110,align:'left'},
                       {field:'SpecificationModel',title:'规格型号',type:'string',width:110,align:'left'},
                       {field:'Unit',title:'单位',type:'string',width:110,align:'left'},
                       {field:'SupplierCode',title:'供应商编码',type:'string',width:110,align:'left'},
                       {field:'SupplierName',title:'供应商名称',type:'string',width:110,align:'left'},
                       {field:'CustomerCode',title:'客户编码',type:'string',width:110,align:'left'},
                       {field:'CustomerName',title:'客户名称',type:'string',width:110,align:'left'},
                       {field:'SalesOrderNumber',title:'销售订单编号',type:'string',width:110,align:'left'},
                       {field:'PurchaseOrderNumber',title:'采购订单编号',type:'string',width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}